import { createApp } from 'vue'
import App from './App.vue'

// 全局样式
import './styles/global.css'

// 路由守卫
import { setupPermission } from './utils/permission'

// Pinia
import { createPinia } from 'pinia'
import router from './router'

export const app = createApp(App)
  .use(createPinia())
  .use(router)

// 启动路由守卫
setupPermission()

app.mount('#app')
